package com.qf.service.impl;

import com.qf.dao.NavigDao;
import com.qf.dao.impl.NavigDaoImpl;
import com.qf.model.Navig;
import com.qf.model.PageBean;
import com.qf.service.NavigService;

import java.util.List;

public class NavigServiceImpl implements NavigService {
    private NavigDao navigDao=new NavigDaoImpl();

    @Override
    public List<Navig> finNavig(int u_manager) {
        return navigDao.finNavig(u_manager);
    }

    @Override
    public List<Navig> finNavigAll(PageBean<Navig> pageBean, String name) {
        return navigDao.finNavigAll( pageBean,name);
    }

    @Override
    public List<Navig> findNavigByID(int id) {
        return navigDao.findNavigByID(id);
    }

    @Override
    public int updateNavige(Navig navig) {
        return navigDao.updateNavige(navig);
    }

    @Override
    public int addNavig(Navig navig) {
        return navigDao.addNavig(navig);
    }

    @Override
    public int deleteNavigByID(int id) {
        return navigDao.deleteNavigByID(id);
    }
}
